package com.webdemo11.servlet;

import java.io.IOException;

import javax.servlet.GenericServlet;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import com.webdemo11.util.SpringHandler;

public class UpdateUserProxy extends GenericServlet {
	private static final long serialVersionUID = 1L;
	private String realServlet;
	private Servlet updateUser;
	@Override
	public void init( ) throws ServletException {
		realServlet = getInitParameter("realServlet");
		updateUser = (Servlet) SpringHandler.getApplicationContext().getBean(realServlet);
	}
	@Override
	public void service(ServletRequest request, ServletResponse response)
			throws ServletException, IOException {
		updateUser.service(request, response);
	}
}
